Skip to content

Conversation

@juanezamudio
Copy link

Summary

This PR adds a new border_radius URL parameter that allows users to customize the border radius of the card container across all themes.

Changes

  • Added border_radius parameter to view.py (default: 10px for backward compatibility)
  • Updated all 7 Jinja2 templates to use the dynamic border_radius value
  • Added comprehensive "Customization" section to README documenting all available URL parameters

Usage Example

https://spotify-github-profile.kittinanx.com/api/view?uid=YOUR_UID&cover_image=true&theme=default&border_radius=15

Motivation

This allows users to better match the Spotify widget styling with other GitHub profile widgets (like github-readme-stats, streak-stats, etc.) that may use different border radius values. For example, many popular GitHub profile widgets use border_radius=15, but the Spotify widget was previously hardcoded to 10px.

Testing

  • Tested locally by verifying the parameter is correctly parsed and passed to templates
  • All existing functionality remains unchanged when border_radius is not specified (defaults to 10px)

Screenshots

N/A - This is a styling customization option that users can preview by adding the parameter to their widget URL.


🤖 Generated with Claude Code

This PR adds a new `border_radius` URL parameter that allows users to customize
the border radius of the card container across all themes.

Changes:
- Added `border_radius` parameter to view.py (default: 10px)
- Updated all Jinja2 templates to use dynamic border_radius value
- Added comprehensive "Customization" section to README documenting all
  available URL parameters

Usage example:
```
?uid=YOUR_UID&border_radius=15
```

This allows users to better match the Spotify widget styling with other
GitHub profile widgets that may use different border radius values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant